954128c80854bc166fd30cace425e1270265c7e4,common/common/src/main/java/org/apache/cxf/staxutils/StaxUtils.java,StaxUtils,read,#XMLStreamReader#boolean#,744

Before Change


    }
    public static Document read(XMLStreamReader reader, boolean recordLoc) throws XMLStreamException {
        Document doc = DOMUtils.createDocument();
        doc.setDocumentURI(new String(reader.getLocation().getSystemId()));
        readDocElements(doc, doc, reader, true, recordLoc);
        return doc;
    }

After Change


    }
    public static Document read(XMLStreamReader reader, boolean recordLoc) throws XMLStreamException {
        Document doc = DOMUtils.createDocument();
        if (reader.getLocation().getSystemId() != null) {
            doc.setDocumentURI(new String(reader.getLocation().getSystemId()));
        }
        readDocElements(doc, doc, reader, true, recordLoc);
        return doc;